# -*- coding: utf-8 -*-
# @Time: 2021/11/18 19:51
# @Author: jiuwu
# @Email: 2359196586@qq.com
# @File: urls.py
# @Software: PyCharm
from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import LabelViewSet, TopicViewSet, TopicStudentViewSet

urlpatterns = [
    # path('topics/random/<pk>/', TopicStudentViewSet.as_view({'get': 'random'}))
]
router = DefaultRouter()
router.register('label', LabelViewSet)
router.register('topic', TopicViewSet)
router.register('topics', TopicStudentViewSet)
urlpatterns += router.urls
